package com.ssm.server.boxes.dao;


import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.ssm.server.boxes.model.Box;

import java.util.List;

/**
 * @author zhangyibo
 */
@Repository
public interface BoxDao {
	public List<Box> getboxByBoxesId(int boxesId);
	public Box getboxByBoxId(int boxId);
	public void updateBoxNowSum(Box box);
	public List<Box> getboxByBoxLevel(@Param("boxLevel") int boxLeve,@Param("boxesId") int boxesId);
	public int boxesSumboxNow(int boxesId);
	public int boxesSumbox(int boxesId);
	public List<Box> getThisBox(int boxesId);
	public int countBox(int boxesId);
	public List<Box> getLastBoxAll(int boxesId);
	public Box getLastBox(int boxesId);
	public Box getboxByFrist(int boxesId);
	public void updateBoxFristNowNumber(int boxId);
	public Box getboxByW(int boxesId);
	public int boxesSumboxNowAll(int boxesId);

	
}
